package java8;

import java.util.concurrent.CountDownLatch;

/**
 * Created by Administrator on 2017/5/16.
 */
public class OrderService implements Runnable {

    private OrderNumGenerior orderNumGenerior=new OrderNumGenerior();

    private CountDownLatch downLatch=new CountDownLatch(100);
    @Override
    public void run() {
        new Thread(createOrder()).start();;
    }

    private String createOrder() {
        return orderNumGenerior.getOrderNum();
    }

}
